package ${package}.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import ${package}.domain.${domain};
import ${package}.service.BaseService;
import ${package}.service.${domain}Service;

/**
 *
 * @author: generate by tool
 * ${.now?datetime}
 */
@Controller
@RequestMapping("${mappingVal}")
public class ${controller} extends CRUDController<${domain}, ${IDType}> {

	@Autowired
	private ${service} ${mappingVal}Service;

	@Override
	public BaseService<${domain}, ${IDType}> getService() {
		return ${mappingVal}Service;
	}

	@Override
	public String getViewFloder() {
		return "${mappingVal}";
	}

}
